package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

// 评论
public interface CommentService {

    // 保存
    Integer saveComment(Comment comment);

    // 取消
    Integer removeComment(Long userId, Integer commentType,String publishId);

    // 分页查询评价
    PageBeanVo findCommentByPage(String publishId, Integer pageNum, Integer pageSize, Integer commentType);

    // 查询对你点赞、评论、喜欢的人信息
    PageBeanVo findUserCommentByPage(Long publishUserId,Integer pageNum,Integer pageSize,Integer commentType);

   //根据id查询评论
    Comment findCommentById(ObjectId objectId);

    //添加视频评论点赞
    void addVideoCommentsLike(String contentId,Comment comment);

    //取消视频评论点赞
    void delVideoCommentsLike(String contentId, Long userId, Integer commentType,Long publishUserId);

    Integer addMovementCommentsLike(ObjectId publishId, Comment comment);

    Integer delMovementCommentsLike(ObjectId publishId,Integer commentType);
}